package com.dachuang.canjiren.controller;


import com.dachuang.canjiren.service.IBannerService;
import com.dachuang.canjiren.service.UserService;
import com.dachuang.common.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author testjava
 * @since 2020-07-27
 */
@RestController
@RequestMapping("/canjiren/user")
public class UserController {

//    @Autowired
//    private UserService userService;
//
//    /**
//     * 注册用户
//     *
//     * @param account
//     * @param email
//     * @param password
//     * @return
//     */
//    @GetMapping(value = "personnel")
//    R insertUser(
//            @RequestParam(value = "account", required = false) String account,
//            @RequestParam(value = "email", required = false) String email,
//            @RequestParam(value = "password", required = false) String password) {
//        return userService.insertUser(account, email, password);
//    }
//
//    /**
//     * 查询用户
//     *
//     * @param id
//     * @return
//     */
//    @GetMapping(value = "selectUser")
//    R sUser(@RequestParam(value = "id", required = false) Integer id) {
//        return userService.selectUser(id);
//    }
//
//    @GetMapping(value = "updataUser")
//    R uUser(@RequestParam(value = "account", required = false) String account,
//            @RequestParam(value = "sex", required = false) String sex,
//            @RequestParam(value = "email", required = false) String email,
//            @RequestParam(value = "address", required = false) String address,
//            @RequestParam(value = "id", required = false) Integer id) {
//        return userService.updataUser(account, sex, email, address, id);
//    }
}

